package edu.gatech.cs2340.bytebankers.notifications;

import java.util.ArrayList;
import java.util.List;

import edu.gatech.cs2340.bytebankers.presenter.IPresenterListener;

public abstract class Notifier {
	List<IListener> presenterListeners = new ArrayList<IListener>(); 
	
	public void addListener(IListener listener) {
		presenterListeners.add(listener);
	}
	
	public void sendNotification(String eventThatOccured) {
		for(IListener listener : presenterListeners)
		{
			listener.actionPerformed(eventThatOccured);
		}
	}
}
